"use strict";const r=require("electron");r.contextBridge.exposeInMainWorld("ipcRenderer",{on(...e){const[n,i]=e;return r.ipcRenderer.on(n,(o,...t)=>i(o,...t))},off(...e){const[n,...i]=e;return r.ipcRenderer.off(n,...i)},send(...e){const[n,...i]=e;return r.ipcRenderer.send(n,...i)},invoke(...e){const[n,...i]=e;return r.ipcRenderer.invoke(n,...i)}});r.contextBridge.exposeInMainWorld("api",{readJsonFile:e=>r.ipcRenderer.invoke("read-json-file",e),writeJsonFile:(e,n)=>r.ipcRenderer.invoke("write-json-file",e,n),readImage:(e,n)=>r.ipcRenderer.invoke("read-image",e,n),writeImage:(e,n)=>r.ipcRenderer.invoke("write-image",e,n)});
